import request from '@/utils/request'

// 查询团队管理列表
export function listTeam(query) {
  return request({
    url: '/system/team/list',
    method: 'get',
    params: query
  })
}

// 查询团队管理详细
export function getTeam(id) {
  return request({
    url: '/system/team/id/' + id,
    method: 'get'
  })
}

// 新增团队管理
export function addTeam(data) {
  return request({
    url: '/system/team',
    method: 'post',
    data: data
  })
}

// 修改团队管理
export function updateTeam(data) {
  return request({
    url: '/system/team',
    method: 'put',
    data: data
  })
}

// 删除团队管理
export function delTeam(id) {
  return request({
    url: '/system/team/' + id,
    method: 'delete'
  })
}
//根据团队的id来添加团队标签
export function addTeamLabel(teamid, ida, idb, idc) {
  return request({
    url: '/system/team/team/label?teamId='+teamid+'&ida='+ida+'&idb='+idb+'&idc='+idc,
    method: 'post'
  })}

//根据团队的id来添加团队的医生的id
export function addTeamDoctor(id,doctorIds) {
  return request({
    url: '/system/team/team/doctor/team?doctorIds='+doctorIds+'&teamId='+id,
    method: 'get'
  })}

  //根据团队的id来添加服务包的id
export function addTeamPackage(id,packageIds) {
  return request({
    url: '/system/team/team/'+id+'/service?serviceid='+packageIds,
    method: 'get'
  })}
